﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace TileMapEditor
{
    [System.Serializable]
    public class GameTileData
    {
        //[ReadOnly]
        public int id;
        //[ReadOnly]
        public Vector3 pos;
        //[ReadOnly]
        public Vector3Int ipos;
        //[ReadOnly]
        public bool canPass = true;
        //[ReadOnly]
        public int tileType = 0;// 0 可行走 1 固定障碍 2 隐藏未加载
        //[ReadOnly]
        public int tag;

        public int assetIndex = 1;

        public enum TileType
        {
            [EnumDescription("可行走")]
            Walkable = 0,
            [EnumDescription("阻挡")]
            Block = 1,
            [EnumDescription("隐藏未加载")]
            Hidden = 2,
        }
    }
}
